package com.donar.concurrent.executorservice;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * Created by donar on 18/3/1.
 */
public class ThreadPoolDemo {
    ThreadPoolExecutor executor = new ThreadPoolExecutor(5,10,100, TimeUnit.SECONDS,new LinkedBlockingDeque<Runnable>());

    public static void main(String[] args) {
        new ThreadPoolDemo().executor.execute(new Runnable() {
            @Override
            public void run() {

            }
        });

    }
}
